﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Linq.Expressions;

namespace Lilium.LExpress
{
    internal static class Utils
    {
        public static bool IsId(this LambdaExpression expr)
        {
            if (expr == null) throw new ArgumentNullException("expr");

            return (expr.Parameters.Count == 1) && (expr.Parameters[0] == expr.Body);
        }
    }
}